#include "GameInstruction.h"
#include <QHBoxLayout>
#include <QFont>

GameInstruction::GameInstruction(QWidget* parent):QDialog(parent)
{
    instruction = new QTextEdit;
    instruction->setFixedSize(400,400);
    QString A(tr("此游戏无充值入口，可免费游玩。安如磐石."));

    instruction->append(A);

    QFont font("黑体", 12, QFont::Bold);
    instruction->setFont(font);
    instruction->setReadOnly(true);

    QHBoxLayout* main_layout = new QHBoxLayout;
    main_layout->addWidget(instruction);
    setLayout(main_layout);
    setFixedSize(400,400);
    setWindowTitle(tr("帮助"));
}
void GameInstruction::closeEvent(QCloseEvent*)
{
    hide();
}
